const CELL_TYPE = { // 格子类型
    EMPTY: 0,
    A: 1,
    B: 2,
    C: 3,
    D: 4,
    E: 5,
    F: 6,
    BIRD: 7
}

const CELL_BASENUM = 6;
const CELL_WORTH = 1; // 消灭动物后可获得的分数
const CELL_STATUS = {
    COMMON: 0,
    CLICK: "click",
    LINE: "line",
    COLUMN: "column",
    WRAP: "wrap",
    BIRD: "bird"
}

// 画布长宽
const GRID_WIDTH = 630;
const GRID_HEIGHT = 630;

// 网格宽行数
const GRID_ROWS = 9;
// 网格列数
const GRID_COLUMNS = 9;

const CELL_WIDTH = 70;
const CELL_HEIGHT = 70;

// 格子间隔
const OFFSET_X = Math.floor((GRID_WIDTH - CELL_WIDTH * GRID_COLUMNS) / GRID_COLUMNS);
const OFFSET_Y = Math.floor((GRID_HEIGHT - CELL_HEIGHT * GRID_ROWS) / GRID_ROWS);


// ********************   时间表  animation time **************************
const ANITIME = {
    TOUCH_MOVE: 0.3,
    DIE: 0.2,
    DOWN: 0.5,
    BOMB_DELAY: 0.3,
    BOMB_BIRD_DELAY: 0.7,
    DIE_SHAKE: 0.4 // 死前抖动
}

module.exports = {
    GRID_WIDTH,
    GRID_HEIGHT,
    GRID_ROWS,
    GRID_COLUMNS,
    CELL_WIDTH,
    CELL_HEIGHT,
    CELL_STATUS,
    CELL_TYPE,
    CELL_BASENUM,
    CELL_WORTH,
    OFFSET_X,
    OFFSET_Y,
    ANITIME,
};